This is an event handling function that promotes players (i.e. adds them to different groups) once they played certain time on the server.
Time-based Player Promotions require a permission plugin to be installed on your server (such as PermissionsEX), as the built-in Bukkit permission system does not support permission groups.
Since there are many permission plugins, it would be inefficient for CommandsEX to try and implement them all, as there already is a plugin that does exactly that. This plugin is called Vault and you will need to have it installed on your server for Time-based Player Promotions to work.
There are 3 config options added to accommodate player time-based promotions:
Default value of timedPromote option:
timedPromote:
default: 0
Example usage:
timedPromote:
wanderer: 500 # add player to group wanderer after 500 seconds of playtime
member: 3600 # add player to group wanderer after 3600 seconds of playtime
PLEASE NOTE: value of timedPromoteTaskTime must not be lower than 180 seconds, since this is the time after which CommandsEX saves players' play times into database. It this option is set to a lower, it will automatically be raised.
Should there be a need to manually remove this feature from the JAR file, the following files must be removed: com/github/zathrus_writer/commandsex/handlers/Handler_playtimepromote.class
com/github/zathrus_writer/commandsex/commands/Command_cex_time2rank.class